<?php

namespace app\validate;

use think\Validate;

class StudyValidate extends Validate
{
    protected $rule = [
        'q|Q'       =>  'require|max:100',
        'a|A'       =>  'require',
        'type|类型'       =>  'require|max:1',
    ];

    protected $scene = [
        'add' => ['q', 'a', 'type'],
        'update' => ['q', 'a', 'type'],
    ];

}